home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12752 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: anvil.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Sort Function
  5. Date: 2 Apr 1996 09:24:58 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4jrntaINN7hl@anvil.ugrad.cs.ubc.ca>
  8. References: <4jmq99$cqi@freenet-news.carleton.ca> <4jpbdcINN16c@keats.ugrad.cs.ubc.ca> <828449009snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
  10.  
  11. In article <828449009snz@genesis.demon.co.uk>,
  12. Lawrence Kirby  <fred@genesis.demon.co.uk> wrote:
  13.  >In article <4jpbdcINN16c@keats.ugrad.cs.ubc.ca>
  14.  >           c2a192@ugrad.cs.ubc.ca "Kazimir Kylheku" writes:
  15.  >
  16.  >>The superflous (tmp = tmp) expression is required to supply the syntactic
  17.  >>requirements of the conditional statement: the expressions are not optional
  18.  >>like for example in for(;;).
  19.  >
  20.  >Or you could simply write tmp there.
  21.  
  22. Right, or even just a zero. But I wanted it to be clear that I'm writing a
  23. wasteful expression. I should also have written ((tmp)=(tmp)), because someone
  24. provide an lvalue which uses operantors that have lower precedence than '='.
  25.  
  26. I think that a simple zero would be better after all!
  27. -- 
  28.  
  29.